<html>
	<head>
		<title>商品列表</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

		<link rel="stylesheet" type="text/css" href="/css/style.css" />
	</head>
	<body>
		<div id="wrap">
			<div id="top_content"> 
				<div id="header">
					<div id="rightheader">
						
					</div>
					<div id="topheader">
						<h1 id="title">
							<a href="#">购物车管理</a>
						</h1>
					</div>
					<div id="navigation">
					</div>
				</div>
				<div id="content">
					<p id="whereami">
					</p>
					<h1>
						<div style="float:left">欢迎：<span th:text="${userName}"></span></div>
					</h1>
					<table class="table">
						<tr class="table_header">
							<td>
								序号
							</td>
							<td>
								商品名
							</td>
							<td>
								单价
							</td>
							
							<td>数量</td>
							<td>总价</td>
							<td>
								操作
							</td>
						</tr>
						<tr th:each="cartItem : ${cartItemList}" class="row1">
							<!-- 序号 -->
							<td th:text="${cartItem.cartId}">序号</td>
							<!-- 商品名 -->
							<td th:text="${cartItem.productName}">商品名</td>
							<!-- 单价 -->
							<td th:text="${cartItem.productPrice}">单价</td>
							<!-- 数量 -->
							<td th:text="${cartItem.quantity}">数量</td>
							<!-- 总价 -->
							<td th:text="${cartItem.totalPrice}">总价</td>
							 <td>
								 <a href="#" th:href="@{/cart/deleteProduct(cartId=${cartItem.cartId})}" class="button">删除</a>
								 <a href="#" th:href="@{/JiaProduct(cartId=${cartItem.cartId})}" class="button">+</a>&nbsp;
                               <a href="#" th:href="@{/JianProduct(cartId=${cartItem.cartId})}" class="button">-</a>
							 </td>
						</tr>
					</table>
					<p>
						<button onclick="window.location.href='/product'">关闭</button>
					</p>
					
				</div>
			</div>
			<div id="footer">
				<div id="footer_bg">
				www.zparkhr.com.cn
				</div>
			</div>
		</div>
	</body>
</html>
